{include header.htm 1}
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000">
  <tr>
    <td colspan="2" bgcolor="#FFFFFF"><a href="sys_user_main.php">后台管理员管理</a></td>
  </tr>
  <tr>
    <td colspan="2" bgcolor="#FFFFFF">查看/修改管理员</td>
  </tr><form name="form1" method="post" action="?">
  <tr>
    <td bgcolor="#FFFFFF">用户ID</td>
    <td bgcolor="#FFFFFF">{:view_adminuser.uid}</td>
  </tr>
  <tr>
    <td width="200" bgcolor="#FFFFFF">用户名</td>
    <td width="600" bgcolor="#FFFFFF">
      <input name="input[userid]" type="text" id="input[userid]" value="{:view_adminuser.userid}">    </td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">姓名</td>
    <td bgcolor="#FFFFFF"><input name="input[name]" type="text" id="input[name]" value="{:view_adminuser.name}"></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">禁止登录</td>
    <td bgcolor="#FFFFFF"><p>
      <label>
        <input type="radio" name="input[loginban]" value="1" {if}{:view_adminuser.loginban}==1{/if}checked{/endif}>
        禁止登录</label>
      <label>
        <input name="input[loginban]" type="radio" value="0" {if}{:view_adminuser.loginban}==0{/if}checked{/endif}>
        允许登录</label>
    </p></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">题库范围(留空全部)</td>
    <td bgcolor="#FFFFFF"><table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000">
      {foreach tiku_lister k v}
      <tr>
        <td align="left" bgcolor="#FFFFFF">          <p>
            <input name="input[tikus][]" type="checkbox" id="input[tikus][]" value="{:k}" {if}{:view_adminuser.tikus|ereg  [:k],@}{/if}checked="checked" {/endif}/>
            {:v.name}<br />
            &nbsp;&nbsp;{foreach v.sun kk vv}
            <input name="input[tikus][]" type="checkbox" id="input[tikus][]" value="{:vv.id}" {if}{:view_adminuser.tikus|ereg  [:vv.id],@}{/if}checked="checked" {/endif}/>
            {:vv.name}
            
            {/foreach} </p></td>
      </tr>
      {/foreach}
    </table></td>
  </tr>
  
  <tr>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF"><input type="submit" value="修改用户">
      <input name="Submit" type="hidden" id="Submit" value="1">
      <input name="id" type="hidden" id="id" value="{:id}"></td>
  </tr>
 
	<tr>
    <td colspan="2" bgcolor="#FFFFFF">权限分配 (基于文件名的3级权限控制) //文件太多时会载入慢,Cache done! </td>
  </tr>
	<tr>
	  <td colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000">
	  <tr>
          <td colspan="3" bgcolor="#FFFFFF">权限组选择 权限以前缀判断，选定了上层权限无需选择下层权限。简洁的权限设置能加快权限检测速度</td>
       </tr>
		  {foreach authdb k v}
          
          <tr>
          <td colspan="3" bgcolor="#FFFFFF">
		  <input name="input[priv][]" type="checkbox" id="input[priv][]" value="{:k}" {:checked.[:k]}/>
            {:k|GetMsg @}</td>
        </tr>
		{foreach v kk vv}
        <tr>
          <td width="4%" bgcolor="#FFFFFF">|-</td>
          <td colspan="2" bgcolor="#FFFFFF"><input name="input[priv][]" type="checkbox" id="input[priv][]" value="{:kk}" {:checked.[:kk]}/>
            {:kk|GetMsg @}</td>
        </tr>
		{if}{:vv|is_array @}{/if}
		{foreach vv kkk vvv}
        <tr>
          <td bgcolor="#FFFFFF">&nbsp;</td>
          <td width="4%" bgcolor="#FFFFFF">|-</td>
          <td bgcolor="#FFFFFF"><input name="input[priv][]" type="checkbox" id="input[priv][]" value="{:kkk}" {:checked.[:kkk]}/>
            {:kkk|GetMsg @}</td>
        </tr>
		{/foreach}
		{/endif}
		{/foreach}
		
  <tr>
    <td colspan="3" bgcolor="#FFFFFF">---------------</td>
    </tr>
  
	{/foreach}
      </table></td>
  </tr>
  </form>
</table>
{include footer.htm}